package com.hzlj.position.config.controller;


import com.fz.common.base.dto.ResultDTO;
import com.hzlj.position.config.common.dto.operatorActivationLogs.OperatorActivationLogsQueryParamDTO;
import com.hzlj.position.config.common.dto.operatorActivationLogs.OperatorActivationLogsQueryResultDTO;
import com.hzlj.position.config.service.OperatorActivationLogsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 【定位-运营商开通-日志】接口
 *
 * @author lifh
 * @date 2023-08-17 18:16:57
 */
@Slf4j
@RestController
@RequestMapping("/position/operator/activation/logs")
public class OperatorActivationLogsController {

    @Resource
    private OperatorActivationLogsService operatorActivationLogsService;


    /**
     * 列表查询 定位-运营商开通-日志
     *
     * @param dto 查询条件
     * @return 对象列表
     */
    @GetMapping("/list")
    public ResultDTO<List<OperatorActivationLogsQueryResultDTO>> listOperatorActivationLogs(OperatorActivationLogsQueryParamDTO dto) {
        log.debug("【查询无分页列表】信息定位-运营商开通-日志,OperatorActivationLogsQueryParamDTO={}", dto);
        return new ResultDTO<>(operatorActivationLogsService.listOperatorActivationLogs(dto));
    }

}

